package com.shenhaofeng.demo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.ActivityOptionsCompat;
import android.view.View;

import com.shenhaofeng.app.component.BaseActivity;


/**
 * Created by Administrator on 2016/9/29.
 */
public class TargetActivity extends BaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_target);

    }

    public static void launch(Activity activity,View view){
        ActivityOptionsCompat options =
                ActivityOptionsCompat.makeSceneTransitionAnimation(
                        activity, view, "test");
        Intent intent = new Intent(activity, TargetActivity.class);
        ActivityCompat.startActivity(activity, intent, options.toBundle());
    }


}
